package com.yanqu.road.entity.log.cross.fivehero;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.log.ServerBaseLog;

import java.util.Date;

@FieldTypeAnnotation(desc = "五雄争霸-触发礼包事件", tableName = "t_l_ck_activity_fivehero_log_gift", autoSave = true, uploadCk = true, isCross = true)
public class LogFiveHeroRmbGift extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "活动ID", isIndex = true)
    private int activityId;
    @FieldTypeAnnotation(desc = "分组ID", isIndex = true)
    private int groupId;
    @FieldTypeAnnotation(desc = "用户Id", isIndex = true)
    private long userId;
    @FieldTypeAnnotation(desc = "阵营id")
    private int campId;
    @FieldTypeAnnotation(desc = "城市id")
    private int cityId;
    @FieldTypeAnnotation(desc = "礼包id")
    private int giftId;

    public LogFiveHeroRmbGift(int groupId, int activityId, long userId, int campId, int cityId, int giftId) {
        this.groupId = groupId;
        this.activityId = activityId;
        this.userId = userId;
        this.campId = campId;
        this.cityId = cityId;
        this.giftId = giftId;
    }

    @Override
    public long getUserId() {
        return userId;
    }
}
